import httpTokenRequest from "../util/request.js"

export function login(data){
	return httpTokenRequest({
		url:"/uniApp/login",
		method:"post",
		data:data
	})
}

// 修改用户
export function updateUser(data) {
  return httpTokenRequest({
    url: '/system/user/update',
    method: 'put',
    data: data
  })
}
// 获取用户信息
export function getUser(userId) {
  return httpTokenRequest({
    url: '/system/user/'+userId,
    method: 'get'
  })
}